﻿@using EditorialProyectos.Business.Entities.Enum
@using EditorialProyectos.Website.Infrastructure
@model EditorialProyectos.Website.Models.UserPanelViewModel
@{
    ViewBag.Title = "UserPanel";
    if (User.IsInRole("Admin"))
    {
        Layout = "~/Views/Shared/_AdminLayout.cshtml";
    }
    else
    {
        Layout = "~/Views/Shared/_UserLayout.cshtml";
    }
}

@section Scripts{

    @Content.ViewModel("UserPanelViewModel.js", Url)

    <script>
        var modelData = '@Html.Raw(Model.ToJson())';
        var modelJSON = JSON.parse(modelData);
        var viewModel = new UserPanelViewModel(modelJSON);

        ko.applyBindings(viewModel);
    </script>
}

<div class="jumbotron color-white">
    <div class="row">
        <div class="col-md-12">
            <h2>Seleccione una de las opciones del menú</h2>
        </div>
    </div>
</div>
